package com.mths.client.dto;

import java.util.List;

public class DocMetaSaveDTO extends BasicDTO {

	private static final long serialVersionUID = -8494258187242038532L;

	private String docTypeOid;
	private List<MetaDataDTO> docReleatedMetaList;

	public String getDocTypeOid() {
		return docTypeOid;
	}

	public void setDocTypeOid(String docOid) {
		this.docTypeOid = docOid;
	}

	public List<MetaDataDTO> getDocReleatedMetaList() {
		return docReleatedMetaList;
	}

	public void setDocReleatedMetaList(List<MetaDataDTO> docReleatedMetaList) {
		this.docReleatedMetaList = docReleatedMetaList;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((docTypeOid == null) ? 0 : docTypeOid.hashCode());
		result = prime * result + ((docReleatedMetaList == null) ? 0 : docReleatedMetaList.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DocMetaSaveDTO other = (DocMetaSaveDTO) obj;
		if (docTypeOid == null) {
			if (other.docTypeOid != null)
				return false;
		} else if (!docTypeOid.equals(other.docTypeOid))
			return false;
		if (docReleatedMetaList == null) {
			if (other.docReleatedMetaList != null)
				return false;
		} else if (!docReleatedMetaList.equals(other.docReleatedMetaList))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "DocumentMetasSaveDTO [docOid=" + docTypeOid + ", docReleatedMetaList=" + docReleatedMetaList + "]";
	}

}